package zzz.icexxx.swing_demo;

import java.awt.Graphics;
import java.awt.event.KeyEvent;

import javax.swing.JFrame;

public class MyFrame extends JFrame {

    /**
     * 序列化
     */
    private static final long serialVersionUID = 2465248600806440480L;

    @Override
    protected void frameInit() {
        setTitle("窗口标题");
        setSize(800, 600);
        setLocation(200, 200);
//        setLocationRelativeTo(null);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        this.setVisible(true);
        super.frameInit();
    }

    @Override
    public void paint(Graphics g) {
        super.paint(g);
    }

    @Override
    protected void processKeyEvent(KeyEvent e) {
        super.processKeyEvent(e);
    }

}
